package com.smartleanx.module.hrm.service.esign.temp.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * e签宝模板和底稿文件
 *
 * @author xzq
 * @since 2025-07-07 16:47:28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "e签宝模板和底稿文件")
@TableName("hrm_e_temp_file")
public class HrmETempFile implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "数据状态 0/删除 1/正常")
    @TableField(value = "data_status", fill = FieldFill.INSERT)
    private Integer dataStatus;

    @Schema(description = "文件id")
    @TableField("file_id")
    private Long fileId;

    @Schema(description = "模板id")
    @TableField("temp_id")
    private Long tempId;

    @Schema(description = "租户id")
    @TableField("tenant_id")
    private Long tenantId;

    @Schema(description = "文件类型 1/签署文件 2/附件3/归档文件")
    @TableField("type")
    private Integer type;

    @Schema(description = "e签宝文件id")
    @TableField("e_file_id")
    private String eFileId;

    @Schema(description = "创建者")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "修改者")
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @Schema(description = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

}
